]> dgit.raspbian.org Git - gnome-shell.git/commit
keyboard: Create extended keys before updating hover state
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 4 Dec 2019 19:01:41 +0000 (20:01 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 4 Dec 2019 19:48:37 +0000 (20:48 +0100)
commit7fbdaadce27305d7145fe4ec4fc7fd063ebad2c0
tree3beaf1203ee801a0a80f731d872f13cfcaa1f0eb
parentff7dfa9259fc8f9f84705b6e87318a2cf39f2c80
keyboard: Create extended keys before updating hover state

We want extended keys to have the same size as their parent key,
but this is currently broken and the keys end up with their
parent key's preferred size (which is smaller than its allocated
size).

This is due to the way ClutterActor's width/height properties work,
which only return the "real" (i.e. allocated) size when the allocation
is valid, and fall back to the preferred size otherwise.

As changing an StWidget's hover state involves adding or removing
the `:hover` pseudo class, this is currently always the case.
Creating the extended keys first means the keyButton's allocation
is probably valid, so do that.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/1976
js/ui/keyboard.js